<template>
  <div>
    <menu-top></menu-top>
    <div class="content">
    <div class="content-wrap">
      <menu-left ref="left" :href="href"></menu-left>
      <el-col :span="23" class="content-clz">
        <div class="wrap">
          <transition name="el-fade-in-linear" mode="out-in">
            <router-view :key="$route.fullPath" keep-alive transition="fade" transition-mode='out-in'></router-view>
          </transition>
        </div>
      </el-col>
    </div>
  </div>
  </div>
</template>

<script>
import { parseUrlParams } from "../../util";
import CONSTANT from '../../constant/constant.js'
import common from '../../common.js'
import VueRouter from 'vue-router'
export default {
  name: 'menulist',
  data(){
    return{
      href:'',
      messageList:[]
    }
  },
  components: {
    'menu-top':() => import('./Menu-Top'),
    'menu-left':() => import('./Menu-Left')
  },
  watch: {
     $route(to, from) {  
        if(!from.name) return;
        if(from.name == 'loginPage'){
          this.$refs.left.leftPermission()
        }else{
          this.$refs.left.activePath()
        }
      }  
  },
  mounted() {
    
  },
  methods: {
  }

}
</script>

<style>
body{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
}

.content{
  /*margin-left: 230px;*/
  /*padding-top: 138px;*/
}

.content-clz {
  margin-left: 280px;
  margin-top: 100px;
}

a{
  text-decoration: none;
}

.wrap{
  /*margin: 20px;*/
}

.el-col-23 {
  width: 77.34%;
}


@media screen and (max-width: 1440px) {
    .content-clz {
      margin-top: 85px;
    }
}
@media screen and (min-width: 1441px) and (max-width: 1600px) {
}


</style>